﻿package znet

import (
	"zxGoServer/zinterface"
)

type Request struct {
	conn zinterface.IConnection
	msg  zinterface.IMessage
}

// 获取请求连接信息
func (r *Request) GetConnection() zinterface.IConnection { return r.conn }

// 获取请求消息的数据
func (r *Request) GetData() []byte { return r.msg.GetData() }

// 获取请求的消息ID
func (r *Request) GetMsgID() uint32 { return r.msg.GetMsgID() }
